package Java9_2.Test_3;

import java.util.Scanner;

public class Teacher_test {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入姓名，年龄，学校");
        try {
            Teacher t=new Teacher(in.next(),in.nextInt(),in.next());
            t.setAge(in.nextInt());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
